package com.thesis.object;
/**
 * User class
 * 
 * get detail of user
 * 
 * @author NgocTuyen
 *
 */
public class User {
	//variable of detail of user
	private int id;
	private String username;
	private String firstName;
	private String lastName;
	private String dateOfBirth;
	private String address;
	private String phoneNumber;
	private String image;
	private int managerId;
	private int role;
	
	/**
	 * Constructor function
	 * 
	 * Constructor
	 * 
	 * @access public
	 * 
	 * @param id: id of user
	 * @param username: username of user
	 * @param firstName: first name of user
	 * @param lastName: last name of user
	 * @param dateOfBirth: birthday of user
	 * @param address: address of user
	 * @param phoneNumber: phone number of user
	 * @param image: image of user
	 * @param managerId: id of manager manage user
	 * @param role: role of user
	 * 
	 * @return void
	 */
	public User(int id, String username, String firstName, String lastName, String dateOfBirth, String address, String phoneNumber, String image, int managerId, int role){
		this.id = id;
		this.username = username;
		this.firstName = firstName;
		this.lastName = lastName;
		this.dateOfBirth = dateOfBirth;
		this.address = address;
		this.phoneNumber = phoneNumber;
		this.image = image;
		this.managerId = managerId;
		this.role = role;
	}
	
	/**
	 * getId function
	 * 
	 * get id of user
	 * 
	 * @access public
	 * 
	 * @param null
	 * 
	 * @return int
	 *  + id of user
	 */
	public int getId(){
		return id;
	}
	
	/**
	 * getUsername function
	 * 
	 * get username of user
	 * 
	 * @access public
	 * 
	 * @param null
	 * 
	 * @return String
	 *  + username of user
	 */
	public String getUsername(){
		return username;
	}
	
	/**
	 * getFirstName function
	 * 
	 * get first name of user
	 * 
	 * @access public
	 * 
	 * @param null
	 * 
	 * @return String
	 *  + first name of user
	 */
	public String getFirstName(){
		return firstName;
	}
	
	/**
	 * getLastName function
	 * 
	 * get last name of user
	 * 
	 * @access public
	 * 
	 * @param null
	 * 
	 * @return String
	 *  + last name of user
	 */
	public String getLastName(){
		return lastName;
	}
	
	/**
	 * getDateOfBirth function
	 * 
	 * get birthday of user
	 * 
	 * @access public
	 * 
	 * @param null
	 * 
	 * @return String
	 *  + birthday of user
	 */
	public String getDateOfBirth(){
		return dateOfBirth;
	}
	
	/**
	 * getAddress function
	 * 
	 * get address of user
	 * 
	 * @access public
	 * 
	 * @param null
	 * 
	 * @return String
	 *  + address of user
	 */
	public String getAddress(){
		return address;
	}
	
	/**
	 * getPhoneNumber function
	 * 
	 * get phone number of user
	 * 
	 * @access public
	 * 
	 * @param null
	 * 
	 * @return String
	 *  + phone number of user
	 */
	public String getPhoneNumber(){
		return phoneNumber;
	}
	
	/**
	 * getImage function
	 * 
	 * get image url of user
	 * 
	 * @access public
	 * 
	 * @param null
	 * 
	 * @return String
	 *  + image url of user
	 */
	public String getImage(){
		return image;
	}
	
	/**
	 * getManagerId function
	 * 
	 * get id of manager manage user
	 * 
	 * @access public
	 * 
	 * @param null
	 * 
	 * @return int
	 *  + id of manager manage user
	 */
	public int getManagerId(){
		return managerId;
	}
	
	/**
	 * getRole function
	 * 
	 * get role of user
	 * 
	 * @access public
	 * 
	 * @param null
	 * 
	 * @return int
	 *  + role of user
	 */
	public int getRole(){
		return role;
	}
	
	/**
	 * setUser function
	 * 
	 * set detail of user
	 * 
	 * @access public 
	 * 
	 * @param id: id of user
	 * @param username: username of user
	 * @param firstName: first name of user
	 * @param lastName: last name of user
	 * @param dateOfBirth: birthday of user
	 * @param address: address of user
	 * @param phoneNumber: phone number of user
	 * @param image: image of user
	 * @param managerId: id of manager manage user
	 * @param role: role of user
	 * 
	 * @return void
	 */
	public void setUser(int id, String username, String firstName, String lastName, String dateOfBirth, String address, String phoneNumber, String image, int managerId, int role){
		this.id = id;
		this.username = username;
		this.firstName = firstName;
		this.lastName = lastName;
		this.dateOfBirth = dateOfBirth;
		this.address = address;
		this.phoneNumber = phoneNumber;
		this.image = image;
		this.managerId = managerId;
		this.role = role;
	}
}
